#ifndef VIDEOSTREAM_H
#define VIDEOSTREAM_H
#include"common.h"
#include "Rtsp.h"
#include "opencv2\opencv.hpp"
#include <memory>

class VideoStream
{
public:
	VideoStream(Video_Params& video_param);
	cv::Mat read_one_frame();
	int get_frame_cnt()const
	{
		return frame_cnt;
	}
private:
	std::unique_ptr<Rtsp> m_rtsp;
	cv::VideoCapture m_videocapture;
	Video_Params m_params;
	int frame_cnt = 0;
	int mode = 0;
};

#endif // !VIDEOSTREAM_H
